home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
program
/
eflibpt4.zip
/
DEMO
/
WINDOWS
/
EVENTHND.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-08-07
|
935b
|
32 lines
{ Borland Pascal Extended Function Library - EFLIB (C) Johan Larsson, 1996
Demonstration; simple event handler (window)
EFLIB IS PROTECTED BY THE COPYRIGHT LAW AND MAY NOT BE COPIED, SOLD OR
MANIPULATED. FOR MORE INFORMATION, SEE PROGRAM MANUAL! THIS DEMONSTRAT-
ION PROGRAM MAY FREELY BE USED AND DISTRIBUTED. }
uses EFLIBDEF, EFLIBINI, EFLIBWIN, EFLIBSCR, EFLIBKBD;
var MyWindow : EventHandlerObjectType;
begin
Screen.Draw;
with MyWindow do begin
InitializeWindow (20, 8, 60, 16, 'MyWindow',
ThinBorder, TRUE, FALSE);
MyWindow.EnableEmbedding;
MyWindow.SetColor (Yellow, Blue);
repeat
MyWindow.Loop;
MyWindow.Write ('Some text to show ');
IgnoreExternalEvents;
until MyWindow.IsFinished;
Intercept;
end;
end.